<template>
  <div :class="wrapClasses"
       :style="wrapStyles">
    <!--label-->
    <label :class="labelClasses"
           :for="elementId"
           :style="labelStyles"
           v-if="isShowLabel">
      <slot name="label">{{label}}</slot>
    </label>
    <!-- input用来展示千分位 -->
    <input :id="elementId"
           ref="inputDisplay"
           :class="inputClasses"
           :value="showValue"
           v-bind="$attrs"
           v-on="inputListeners" />
    <span v-if="showChinese" :title="chineseValue">{{chineseValue}}</span>
    <!--input 隐藏域-->
    <input
      ref="inputHidden"
      :name="$attrs.name"
      :value="value"
      type="hidden" />
    <!--验证提示-->
    <div :class="errorTipClasses"
         :style="errorTipStyles"
         v-if="isShowMessage">
      {{validateMessage}}
    </div>
  </div>
</template>
<script type="text/ecmascript-6" src="./index.js"></script>
